import request from '@/router/axios'

export function fetchPvmArcMaterialTypeList(query) {
  return request({
    url: '/pvm/arcmaterialtype/page',
    method: 'get',
    params: query
  })
}

export function addPvmArcMaterialTypeObj(obj) {
  return request({
    url: '/pvm/arcmaterialtype',
    method: 'post',
    data: obj
  })
}

export function getPvmArcMaterialTypeObj(id) {
  return request({
    url: '/pvm/arcmaterialtype/' + id,
    method: 'get'
  })
}

export function getListByInterventionId(interventionId) {
  return request({
    url: '/pvm/arcmaterialtype/getListByInterventionId/' + interventionId,
    method: 'get'
  })
}

export function delPvmArcMaterialTypeObj(id) {
  return request({
    url: '/pvm/arcmaterialtype/' + id,
    method: 'delete'
  })
}

export function putPvmArcMaterialTypeObj(obj) {
  return request({
    url: '/pvm/arcmaterialtype',
    method: 'put',
    data: obj
  })
}
